package com.twu.biblioteca;

import java.util.ArrayList;

public class UserSet {
    private ArrayList<User> user= new ArrayList<User>();
    public UserSet (ArrayList<User> user){
        this.user=user;
    }
    public User getUserById(String userId){
        for(User u : user){
            if(u.getId().equals(userId))
            return u;
        }
        return null;
    }
}
